<#macro SeaConfig static>
<#if static?? && static?size gt 0>
<script type="text/javascript">
    var seaConfig = {
        'base':'<#if static.base?? && static.base?length gt 0>${static.base}<#else>http://${configs['domains.static']!"static.dajieimg.com"}</#if>'
        <#if static.alias?? && static.alias?size gt 0 && static.alias?is_hash_ex>
            , 'alias':{
            <#list static.alias?keys as key>
                <#assign staticValue= static.alias[key]/>
                <#if staticValue?ends_with('.css')>
                    <#assign staticValuePrefix=staticValue?substring(0,staticValue?last_index_of(".css"))/>
                <#elseif staticValue?ends_with('.js')>
                    <#assign staticValuePrefix=staticValue?substring(0,staticValue?last_index_of(".js"))/>
                <#else>
                    <#assign staticValuePrefix=staticValue/>
                </#if>
                <#assign assetsPath='/static/' + staticValue/>
                <#if assetsDataMap[assetsPath]?? && shouldMergeAssets>
                    '${key}':'${staticValuePrefix}.${assetsDataMap[assetsPath]}.<#if staticValue?ends_with('.css')>css<#else>js</#if>'<#if key_has_next>,</#if>
                <#else>
                    '${key}':'${staticValue}'<#if key_has_next>,</#if>
                </#if>
            </#list>
        }
        </#if>
        <#if static.preload?? && static.preload?size gt 0 && static.preload?is_sequence>
            , 'preload':[<#list static.preload as item>"${item}"<#if item_has_next>,</#if></#list>]
        </#if>
    };
    seajs.config(seaConfig);
    street.sea.insertStyle(seaConfig);
</script>
</#if>
</#macro>